﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            //start的调用
            Ber test = new Ber();
            test.start();
            //shock方法调用
            Interface2 test1 = new Ber();
            test1.shock();





            
            //显示调用
            Student h = new Student();
            IPerson person = h;
            IStudent student = h;
            Console.WriteLine("请输入姓名：");
            person.Name = Console.ReadLine(); ;
            Console.WriteLine("请输入学号：");
            student.Id =Console.ReadLine(); ;          
            person.Show(person.Name);
            student.Show(student.Id);
            //隐式接口
        }
    }
}
